#ifndef _MATHLOGIC_H_
#define _MATHLOGIC_H_

#if defined DLL_EXPORT
	#define DECLDIR __declspec(dllexport)
#else
	#define DECLDIR __declspec(dllexport)
#endif


class MathLogic
{
	int score;
	int hiscore;
	string player;
	string topPlayer;
	int answer;
	int correctAnswer;
	int a, b, c, d;
	int difficulty;
	clock_t Start, Stop;
	int timeMs;
	RegistryMod *pRegmod;

public:
	

	MathLogic(string name, int level);
	~MathLogic();

	void RandomizeNumbers();

	void GenerateProblem();

	void checkAnswer();

	void printHelp(void);

};

MathLogic *_MathLogic;

extern "C"
{
	DECLDIR void _init(string name, int level) 
	{
		_MathLogic = new MathLogic(name, level);
	}

	DECLDIR 
		void _randomizeNumbers()
	{
		_MathLogic->RandomizeNumbers();
	}

	DECLDIR 
		void _generateProblem()
	{
		_MathLogic->GenerateProblem();
	}
}

#endif // _MATHLOGIC_H_